#include <stdio.h>
#include <stdlib.h>
#include "LinkedList.h"

/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main(int argc, char *argv[]) {
	PtrToNode head = CreateLinkedList();
	int i;
	for(i = 0; i < 10; i++)
	{
		InsertLinkedList(head, i);
	}
	if(ShowLinkedList(head) != 0)
	{
		return 0;
	}
	if(EmptyLinkedList(head) != 0)
	{
		return 0;
	}
	for(i = 0; i < 10; i++)
	{
		if(DeletLinkedList(head))
		{
			return 0;
		} 
	}
	ShowLinkedList(head);
	return 0;
}
